package edu.lingnan.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author wuyuan
 * @since 2020-06-08 10:48
 *
 * Ribbon 和 Eureka 整合后，客户端使用服务名来访问，不需要知道具体的ip地址或者域名
 */
@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients(basePackages = {"edu.lingnan.springcloud"})
public class FeignClassesConsumer80 {
    public static void main(String[] args) {
        SpringApplication.run(FeignClassesConsumer80.class, args);
    }
}
